#include <iostream>
#include <string>
#include <memory>

using namespace std;

//租房类
class RentHouse{
public:
    virtual void rentHouse() = 0;
};

//房东
class Landlord : public RentHouse{
public:
    void rentHouse() override{
        cout << "房东租房" << endl;
    }
};

class Intermediary : public RentHouse{
public:
    void rentHouse() override{
        cout << "招租 - " << "带人看房 - " << "中介租房" << endl;
        _landlord.rentHouse();
        cout << "中介售后" << endl;
    }

private:
    //对房东进行代理
    Landlord _landlord;
};

int main(){
    Intermediary im;
    im.rentHouse();
    return 0;
}